<template>
	<view class="">
		<view>
			<input type="text" v-model="search">
			{{search}}
		</view>
		<view><button @click="emit">点击</button></view>
		<view><button @touchend="emit">点击2</button></view>
		<navigator url="/pages/detail/detail">
			<button type="default" >跳转</button>
		</navigator>
		<button @click="goToDetail" type="default">跳转2</button>
		<a href="www.baidu.com">web端可以使用 小程序不能使用</a>
		<uni-rate :size="18" :value="5"/>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				search:''
			}
		},
		methods: {
			emit(){
				alert(1)
			},
			goToDetail(){
				uni.navigateTo({
					url:'../detail/detail?name=测试'
				})
			}
		}
	}
</script>

<style>

</style>
